home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
logger.z
/
logger
Wrap
Text File
|
1998-10-20
|
3KB
|
67 lines
LLLLOOOOGGGGGGGGEEEERRRR((((1111)))) LLLLOOOOGGGGGGGGEEEERRRR((((1111))))
NNNNAAAAMMMMEEEE
logger - make entries in the system log
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
llllooooggggggggeeeerrrr [ ----iiii ] [ ----ssss ] [ ----ffff _f_i_l_e ] [ ----tttt _t_a_g ] [ ----pppp _p_r_i ] [ _m_e_s_s_a_g_e ... ]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_L_o_g_g_e_r provides a shell command interface to the _s_y_s_l_o_g(3B) system log
routine. It can log a message specified on the command line, from a
specified file, or from the standard input. Each line in the specified
file or standard input is logged separately.
_L_o_g_g_e_r has the following options:
----iiii Log the process ID of the logger process with each line.
----ssss Log the message to standard error, as well as the system log.
----ffff _f_i_l_e Log the contents of the specified file.
----pppp _p_r_i Enter the message with the specified priority. The priority
may be specified numerically or as a ``facility.level'' pair.
For example, ``-p local3.info'' logs the message(s) as
_i_n_f_ormational level in the _l_o_c_a_l_3 facility. The default is
``user.notice.'' See _s_y_s_l_o_g(3B) for a description of the
facilities and levels.
----tttt _t_a_g Mark every line in the log with the specified _t_a_g.
_m_e_s_s_a_g_e The message to log; if not specified, and the ----ffff flag is not
provided, standard input is logged.
_L_o_g_g_e_r exits with 0 if successful, and with 1 if an error occurs.
EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
logger program failed
This will log the message ``program failed'' with user's name as the tag
and with a facility and level of ``user.notice.''
logger -p local0.notice -t sysprog -f /tmp/sysprog.errs
This will log each line in the file /_t_m_p/_s_y_s_p_r_o_g._e_r_r_s with the prefix
``sysprog''. The facility is ``local0'' and the priority level is
``notice.''
SSSSEEEEEEEE AAAALLLLSSSSOOOO
syslogd(1M)
PPPPaaaaggggeeee 1111